/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tomica.datarespone;

import iaik.pkcs.pkcs11.wrapper.CK_SLOT_INFO;

/**
 *
 * @author Tomica-lab
 */
public class DataResponse_C_GetSlotInfo {
    private long responseCode;
    private String slotDescription;
    private String manufacturerID;
    private long flags;
    private byte hardwareVersionMajor;
    private byte hardwareVersionMinor;
    private byte firmwareVersionMajor;
    private byte firmwareVersionMinor;

    public DataResponse_C_GetSlotInfo() {
    }

    public DataResponse_C_GetSlotInfo(long responseCode, String slotDescription, String manufacturerID, long flags, byte hardwareVersionMajor, byte hardwareVersionMinor, byte firmwareVersionMajor, byte firmwareVersionMinor) {
        this.responseCode = responseCode;
        this.slotDescription = slotDescription;
        this.manufacturerID = manufacturerID;
        this.flags = flags;
        this.hardwareVersionMajor = hardwareVersionMajor;
        this.hardwareVersionMinor = hardwareVersionMinor;
        this.firmwareVersionMajor = firmwareVersionMajor;
        this.firmwareVersionMinor = firmwareVersionMinor;
    }

    public byte getHardwareVersionMajor() {
        return hardwareVersionMajor;
    }

    public void setHardwareVersionMajor(byte hardwareVersionMajor) {
        this.hardwareVersionMajor = hardwareVersionMajor;
    }

    public byte getHardwareVersionMinor() {
        return hardwareVersionMinor;
    }

    public void setHardwareVersionMinor(byte hardwareVersionMinor) {
        this.hardwareVersionMinor = hardwareVersionMinor;
    }

    public byte getFirmwareVersionMajor() {
        return firmwareVersionMajor;
    }

    public void setFirmwareVersionMajor(byte firmwareVersionMajor) {
        this.firmwareVersionMajor = firmwareVersionMajor;
    }

    public byte getFirmwareVersionMinor() {
        return firmwareVersionMinor;
    }

    public void setFirmwareVersionMinor(byte firmwareVersionMinor) {
        this.firmwareVersionMinor = firmwareVersionMinor;
    }

    

    public long getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(long responseCode) {
        this.responseCode = responseCode;
    }

    public String getSlotDescription() {
        return slotDescription;
    }

    public void setSlotDescription(String slotDescription) {
        this.slotDescription = slotDescription;
    }

    public String getManufacturerID() {
        return manufacturerID;
    }

    public void setManufacturerID(String manufacturerID) {
        this.manufacturerID = manufacturerID;
    }

    public long getFlags() {
        return flags;
    }

    public void setFlags(long flags) {
        this.flags = flags;
    }

    

    

   

   

   

    
    
    public void setSlotInfor(CK_SLOT_INFO toCGetSlotInfor) {
        setFirmwareVersionMajor(toCGetSlotInfor.firmwareVersion.major);
        setFirmwareVersionMinor(toCGetSlotInfor.firmwareVersion.minor);
        setHardwareVersionMajor(toCGetSlotInfor.hardwareVersion.major);
        setHardwareVersionMinor(toCGetSlotInfor.hardwareVersion.minor);
        setFlags(toCGetSlotInfor.flags);
        setManufacturerID(new String(toCGetSlotInfor.manufacturerID));
        setSlotDescription(new String(toCGetSlotInfor.slotDescription));
                
    }
}
